<template>
  <div class="establish">
      <!-- 头部标题组件-->
      <edit-title>
          <template #mytitle>创建客户</template>
          <template #btn>
             <el-button type="primary" @click="submit()">保存</el-button>
          </template>
      </edit-title>
      <!-- 引入编辑框组件 -->
      <edit-input></edit-input>
  </div>
</template>

<script>
import myhead from '../../../components/myhead.vue'
import EditInput from '../edit/edit-input.vue'
import EditTitle from '../edit/edit-title.vue'
export default {
  components: { myhead, EditTitle, EditInput },
  methods:{
    // 点击保存将数据追加到列表中
    submit(){
        // 点击保存回到列表
        this.$router.push("/home/customerList")
    }
  }
}
</script>

<style lang="less" scoped>
.establish{
     background-color: #fff;
}
</style>